const prefix = '/api/v1'

export const login = prefix + '/login'
export const csrf = prefix + '/first-login'
export const logout = prefix + 'logout'
export const randCode = prefix + '/randCode'

export const vehiclesList = prefix + '/vehicles'
export const vehicleAdd = prefix + '/vehicle'

export const usersList = prefix + '/users'
export const usersAdd = prefix + '/user'


//sys模块下的请求地址前缀
export const sysPrefix = prefix + "/sys"

//菜单请求接口
export const menus = sysPrefix + "/menus"
//菜单的增删改
export const menuURD = sysPrefix + "/menu/"
export const treeMenuList = sysPrefix + "/menusByTree"
export const menuListByRoleId =sysPrefix + "/menuListByRoleId/"
//查询登录用户的角色分配的菜单，动态路由
export const routeList = sysPrefix + '/routes'
//查询单个信息，修改信息，删除信息都是一个接口名，只不过方法不一样 TODO 测试
export const routeURD = prefix + '/route/'


//角色请求接口
export const roles = sysPrefix + "/roles"
//角色的增删改
export const roleURD = sysPrefix + "/role/"
//角色分配的菜单ids
export const addRoleAssignMenuIds = sysPrefix + "/role/assignMenu"


//dict数据字典接口
export const dicts = prefix + "/sys/dicts"
export const addDict = prefix + "/sys/dict"
export const dictCategorys = prefix + "/sys/dictCategorys"
export const addDictCategory = prefix + "/sys/dictCategory"

/**题库和知识点相关 */
export const questionBanks = sysPrefix + "/questionBanks"

export const allBankList = sysPrefix + "/allList"
export const categoryAndTeamListAndQuestionNum = sysPrefix + "/categoryAndTeamListAndQuestionNum/"


/**答案相关 */
export const answerOptionsByQId = sysPrefix + "/answerOptionsByQId/"

/**题目相关 */
export const questions = sysPrefix + "/questions"
export const questionURD = sysPrefix + "/question/"
export const questionsByTeam = sysPrefix + "/questionsByTeam/"
export const submitAnswers = sysPrefix + "/submitAnswers/"

/**收藏题目方法 */
export const starQuestion = sysPrefix + "/starQuestion/"

export const clearContinueQuestion = sysPrefix + "/clearRedistData/"

//查询题组的id和name的集合，用于选择题组
export const teamIdAndNameList = sysPrefix + "/teamIdAndNameList"